<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.org/rich"
	template="../include/template.xhtml">

	<ui:define name="pageTitle">
		<h:outputText value="学习中心" />
	</ui:define>
	<ui:define name="logoTitle">
		<h:outputText value="学习中心" />
	</ui:define>	

	<ui:define name="content">
		<style type="text/css">
<!--
.inputClass {
	border: 1px solid #6699CC;
	width: 300px;
	margin-left: 4px;
}

.footClass {
	margin: 0px;
	text-align: left;
	border: 0px #c0d5e6 solid;
	background-color: #fff;
	border: 0px #c0d5e6 solid;
}
-->
</style>
		<br />
		<h:outputText value="文章列表" />
		<rich:separator lineType="double" height="2px" />
		<rich:spacer width="30px"></rich:spacer>

		<s:div styleClass="right_center">
			<a:form>
				<rich:dataGrid id="studyGrid" value="#{studyIndexAction_allPaper}"
					var="vnews" columns="1" elements="10"
					style="width:100%;border:0px;" footerClass="footClass">
					<rich:togglePanel switchType="ajax" id="togPanel"
						stateOrder="first,second">
						<f:facet name="first">
							<ui:include src="/include/news/firstLine.xhtml">
								<ui:param name="next" value="second" />
							</ui:include>
						</f:facet>
						<f:facet name="second">
							<rich:panel>
								<ui:include src="/include/news/firstLine.xhtml" />
								<br />
								<h:outputText value="#{vnews.content}" escape="false" />
							</rich:panel>
						</f:facet>

					</rich:togglePanel>
					<f:facet name="footer">
						<rich:datascroller for="studyGrid" align="left"
							rendered="#{studyIndexAction_allPaper.size()>10}" maxPages="20" />
					</f:facet>
				</rich:dataGrid>

			</a:form>
		</s:div>

	</ui:define>
</ui:composition>
